package org.product

class ProductType {
	Integer sort=0;
	String typeName;
	String remark;
	
	static belongsTo = Product
	static hasMany =[products:Product]

    static constraints = {
		sort();
    	typeName()
    	remark(widget:'textarea',blank:true)
    }
    static mapping = {
    	sort "typeName"
    }
    String toString(){
    	return "${typeName}"
    }
}
